<!DOCTYPE html>
<html>
<head>
	<title>晒单</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, maximum-scale=1.0"/>
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <link href="{G_TEMPLATES_CSS}/wx/style.css" rel="stylesheet">
    <link href="{G_TEMPLATES_CSS}/wx/comm.css" rel="stylesheet">
    <script src="{G_TEMPLATES_JS}/wx/jquery-2.1.4.min.js"></script>
    <style>
		body{
			background-color:#FFF;
		}
		.name{
			margin-left:0px;
			float:left;
			width:60%;
			text-align:center;
		}
		.header-left{
			width:20%;
			height:100%;
			float:left;
		}
		.header-right{
			width:20%;
			height:100%;
			float:left;
		}
		.jx-date{
			margin-top:10px;
		}
	</style>
</head>
<body>
{wc:templates "mobile/index","header"}
    <div class="shaidan-info">
    	<ul>
        	<li>
            	<img src="{G_UPLOAD_PATH}/{wc:$member['img']}" class="shaidan-touimg">
                <span class="shaidan-username">{wc:$member['username']}</span>
                <div class="shaidan-info-content">{wc:$shaidan['sd_content']}</div>
                <span class="jx-date">奖品名称：{wc:$shopinfo['title']}</span><br />
                <span class="jx-date">开奖期数：{wc:$shopinfo['qishu']}</span><br />
                <span class="jx-date">本期参与：{wc:$shopinfo['zongrenshu']}人次</span><br />
                <span class="jx-date">幸运号码：{wc:$shopinfo['q_user_code']}</span><br />
                <span class="jx-date">揭晓时间：<?
                echo date("Y-m-d H:i:s",$shopinfo['q_end_time'])
                ?></span>
                <ul class="goods-shaidan">
                	<? $shaiimg=explode(';',$shaidan['sd_photolist'])
          ;
          for($i=0;$i < count($shaiimg)-1;$i++ ){
          echo '<li>'; 
          echo '<img src="'.G_UPLOAD_PATH.'/'.$shaiimg[$i].'">';
           echo '</li>';

          }
  
          ?>
                </ul>
                <br />
                <span class="shaidan-update" style="float:right;margin-right:15%;"><?echo date("Y-m-d",$shaidan['sd_time'])?>上传</span>
                <!--
                <div class="zan">
                    <img src="images/zan.png" class="xin" state="0">
                    <span class="zan-num">20</span>
               	</div>
                -->
            </li>
        
        </ul>
     </div>
     
<script>
		$(document).ready(function(e) {
            $(".xin").click(function(){
				var sw=$(".xin").index(this);
				var sta=$(".xin").eq(sw).attr("state");
				var zNum=parseInt($(".zan-num").eq(sw).text());
				if(sta==0){
					$(".xin").eq(sw).attr("src","images/zan_click.png");
					$(".xin").eq(sw).attr("state","1");
					zNum++;
					$(".zan-num").eq(sw).text(zNum);
				}else{
					$(".xin").eq(sw).attr("src","images/zan.png");
					$(".xin").eq(sw).attr("state","0");
					zNum--;
					$(".zan-num").eq(sw).text(zNum);
				}
			})
        });
    </script>
</body>
</html>
